@extends('layouts.admin.application')

@section('content')
    <div class="main-content">
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
                try {
                    ace.settings.check('breadcrumbs', 'fixed')
                } catch (e) {
                }
            </script>

            <ul class="breadcrumb">
                <li>
                    <i class="icon-home home-icon"></i>
                    <a href="#">首页</a>
                </li>
                <li class="active">数据统计</li>
            </ul><!-- .breadcrumb -->
        </div>

        <div class="page-content">

            <div class="row">
                <div class="col-xs-12">
                    <div class="alert alert-block alert-success">
                        <i class="icon-ok green"></i>
                        欢迎访问
                        <strong class="green">
                            Holy个人后台管理系统
                            <small>(v1.0)</small>
                        </strong>
                        ,本次后台包括三个大系统，主要有：商城管理中心，ERP管理系统，药店官网系统。
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="span12">
                                <div class="widget-box">
                                    <div class="widget-header widget-header-blue widget-header-flat">
                                        <h4 class="lighter">
                                            <span class="icon-key"></span>
                                            修改密码
                                        </h4>
                                    </div>

                                    <hr>

                                    @include('layouts.partials._flash')

                                    <form class="form-horizontal" action="{{route('update_password')}}" method="post">

                                        {{csrf_field()}}
                                        {{ method_field('PUT') }}

                                        <div class="form-group has-warning">
                                            <label class="col-xs-12 col-sm-3 control-label no-padding-right">用户名：</label>

                                            <div class="col-xs-12 col-sm-5">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="text" class="width-100" readonly value="{{Auth::user()->name}}">
                                                    <i class="icon-info-sign"></i>
                                                </span>
                                            </div>
                                        </div>

                                        <div class="form-group has-error">
                                            <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right">邮箱：</label>

                                            <div class="col-xs-12 col-sm-5">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="text" name="email" class="width-100">
                                                    <i class="icon-envelope"></i>
                                                </span>
                                            </div>
                                        </div>

                                        <div class="form-group has-success">
                                            <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right">手机号码：</label>

                                            <div class="col-xs-12 col-sm-5">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="text" name="mobile" class="width-100">
                                                    <i class="icon-phone"></i>
                                                </span>
                                            </div>
                                        </div>

                                        <div class="form-group has-info">
                                            <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right">原始密码：</label>

                                            <div class="col-xs-12 col-sm-5">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="password" name="oldpassword" class="width-100">
                                                    <i class="icon-key"></i>
                                                </span>
                                            </div>
                                        </div>

                                        <div class="form-group has-success">
                                            <label class="col-xs-12 col-sm-3 control-label no-padding-right">新密码：</label>

                                            <div class="col-xs-12 col-sm-5">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="password" id="password" name="password" class="width-100">
                                                    <i class="icon-key"></i>
                                                </span>
                                            </div>
                                        </div>

                                        <div class="form-group has-info">
                                            <label class="col-xs-12 col-sm-3 control-label no-padding-right">确认新密码：</label>

                                            <div class="col-xs-12 col-sm-5">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="password" id="newpassword" name="newpassword" class="width-100">
                                                    <i class="icon-key"></i>
                                                </span>
                                            </div>
                                        </div>
                                        <div class="row-fluid wizard-actions">
                                            <button type="submit" class="btn btn-success">保存修改</button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div><!-- /row -->
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.page-content -->
    </div>
@endsection


